package com.hjx.windowtool.bk.dibaqu.server;

import org.springframework.context.ApplicationContext;

public class ContextUtil {
	private static ApplicationContext context;

	public static void setContext(ApplicationContext context) {
		ContextUtil.context = context;
	}
	
	public static <T> T getBean(Class<T> clz) {
		return context.getBean(clz);
	}

	public static ApplicationContext getContext() {
		return context;
	}
}
